<!--
* @description 最美诛仙 参加列表
* @fileName zuimeiZX.vue
* @author huangyu
* @date 2023/04/28 14:22:09
!-->
<template>
    <div class="zuimeiZX">
        <el-row :gutter="20">
            <el-col :span="6" v-for="(item,index) in list" :key="index" style="height:550px;overflow:hidden">
                <div>{{index+1}}、{{item.create_time | formatDate}}</div>
                <div v-html="item.content" style="color:#333;font-size:14px;"></div>
            </el-col>
        </el-row>
    </div>
</template>

<script>
import { get } from '@/common/app.js'
import { formatDate } from '@/common/unit.js'
export default {
    components: {},
    data() {
        return {
            list: [],
        }
    },
    mounted() {
        this.getData()
    },
    methods: {
        getData(){
            let params = {
                type: 'getCommon',
                api: 'api-bbs-zuimei-list',
                data: {},
            }
            get('game', params).then(res => {
                if (res) {
                    this.list = res.data
                    console.log(res)
                }
            })
        }
    },
    filters: {
        formatDate(time) {
            var date = new Date(time);
            let res = formatDate(date, "yy-MM-dd hh:mm:ss");
            return res;
        },
    }
}
</script>

<style scoped>

</style>